def hello():
    try:
        b = [1]
        c = b[3]

        print("--0")
        return 0
    except Exception as error:
        print("--1")
        return 1
    finally:
        print("--2")
        return 2


def hello2():
    try:
        b = [1]
        c = b[0]

        print("--0")
        return 0
    except Exception as error:
        print("--1")
        return 1
    finally:
        print("--2")
        return 2


print(hello())
print("-------------")
print(hello2())

